angular.module('meMoreAboutUsServices', [])

  .factory('MoreAboutUs', function ($resource, $rootScope, ENV, Storage) {


    //设置访问接口路径
    var APIUrl = ENV.api;

    //访问获取用户信息的接口
    var getAboutUsResource = $resource(APIUrl + "meMore/getAboutUs.do");

    var aboutUsJson;

    return{

      getAboutUsInfo : function(){
        getAboutUsResource.save(
          {},
          function (data) {
            aboutUsJson = data;
            $rootScope.$broadcast('Me.getAboutUsInfo');
          }
        );
      },

      getAboutUsInfoJson : function (){
        return aboutUsJson;
      }

    }
  });
